runtime.mheap.sweepPagesPerByte (field)
9 uses
runtime (current package)
mgc.go#L1699: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L177: print("pacer: sweep done at heap size ", live>>20, "MB; allocated ", (live-mheap_.sweepHeapLiveBasis)>>20, "MB during sweep; swept ", mheap_.pagesSwept.Load(), " pages at ", mheap_.sweepPagesPerByte, " pages/byte\n")
mgcsweep.go#L898: if mheap_.sweepPagesPerByte == 0 {
mgcsweep.go#L933: pagesTarget := int64(mheap_.sweepPagesPerByte*float64(newHeapLive)) - int64(callerSweepPages)
mgcsweep.go#L936: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L971: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L992: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L994: mheap_.sweepPagesPerByte = float64(sweepDistancePages) / float64(heapDistance)
mheap.go#L107: sweepPagesPerByte float64 // proportional sweep ratio; written with lock, read without